<template>
	<view class="agreement">
		<u-parse :html="data.content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {}
			};
		},
		onLoad(el) {
			this.getAgreement(el.type)
		},
		methods: {
			getAgreement(type){
				let that = this
				that.$api.agreementInfo({
					type: type
				}).then(res => {
					// console.log(res.data.data,'1')
					that.data = res.data.data
				})
			}
		}
	}
</script>

<style lang="less">

</style>
